//
//  HJShareModel.m
//  KaiChat
//
//  Created by lx on 2024/3/6.
//

#import "HJShareModel.h"

@implementation HJShareModel

+ (HJShareModel *)modeWithFriendModel:(HJChatFriendModel *)friendModel {
    HJShareModel *model = [[HJShareModel alloc] init];
    model.avatar = friendModel.avatar;
    model.name = friendModel.showName;
    model.anyObject = friendModel;
    return model;
}

+ (HJShareModel *)modeWithGroupModel:(HJChatGroupModel *)groupModel {
    HJShareModel *model = [[HJShareModel alloc] init];
    model.avatar = groupModel.avatar;
    model.name = groupModel.name;
    model.anyObject = groupModel;
    return model;
}

+ (HJShareModel *)modeWithSessionModel:(HJChatSessionModel *)sessionModel {
    HJShareModel *model = [[HJShareModel alloc] init];
    model.avatar = sessionModel.sessionAvatar;
    model.name = sessionModel.sessionName;
    model.anyObject = sessionModel;
    return model;
}

@end
